<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.3"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>SSDP Help: D:/doxy/PublicAPI/ATDataCore/ATTxtStr.h 源文件</title>
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../jquery.js"></script>
<script type="text/javascript" src="../../dynsections.js"></script>
<link href="../../doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">SSDP Help<span id="projectnumber">&#160;2.04.01</span>
   </div>
   <div id="projectbrief">仅供测试</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.9.3 -->
<script type="text/javascript" src="../../menudata.js"></script>
<script type="text/javascript" src="../../menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('../../',false,false,'search.php','搜索');
});
/* @license-end */
</script>
<div id="main-nav"></div>
<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="../../dir_52a01df1794e5beec01860bdd05aea48.html">PublicAPI</a></li><li class="navelem"><a class="el" href="../../dir_4327875b5af0f0d2cd35b102dcf8c063.html">ATDataCore</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle"><div class="title">ATTxtStr.h</div></div>
</div><!--header-->
<div class="contents">
<a href="../../d6/d7c/_a_t_txt_str_8h.html">浏览该文件的文档.</a><div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno">    1</span> </div>
<div class="line"><a id="l00008" name="l00008"></a><span class="lineno">    8</span><span class="preprocessor">#pragma once</span></div>
<div class="line"><a id="l00009" name="l00009"></a><span class="lineno">    9</span> </div>
<div class="line"><a id="l00010" name="l00010"></a><span class="lineno">   10</span>BEGIN_ATEC_ATDATACORE_NAMESPACE</div>
<div class="line"><a id="l00011" name="l00011"></a><span class="lineno">   11</span> </div>
<div class="line"><a id="l00018" name="l00018"></a><span class="lineno"><a class="line" href="../../db/d83/struct_text_string.html">   18</a></span><span class="keyword">struct </span><a class="code hl_struct" href="../../db/d83/struct_text_string.html">TextString</a> : <span class="keyword">public</span> RefCountedBase</div>
<div class="line"><a id="l00019" name="l00019"></a><span class="lineno">   19</span>{</div>
<div class="line"><a id="l00020" name="l00020"></a><span class="lineno">   20</span><span class="keyword">public</span>:</div>
<div class="line"><a id="l00029" name="l00029"></a><span class="lineno"><a class="line" href="../../db/d83/struct_text_string.html#ae4a5e0c57fe765b88fa291a47bdd2b51">   29</a></span>    ATDATACORE_EXPORT <span class="keyword">static</span> TextStringPtr <a class="code hl_function" href="../../db/d83/struct_text_string.html#ae4a5e0c57fe765b88fa291a47bdd2b51">Create</a>();</div>
<div class="line"><a id="l00030" name="l00030"></a><span class="lineno">   30</span> </div>
<div class="line"><a id="l00043" name="l00043"></a><span class="lineno"><a class="line" href="../../db/d83/struct_text_string.html#aa8a306d94aaf0a6bad1c127c72b0c7c7">   43</a></span>    ATDATACORE_EXPORT <span class="keyword">static</span> TextStringPtr <a class="code hl_function" href="../../db/d83/struct_text_string.html#aa8a306d94aaf0a6bad1c127c72b0c7c7">Create</a>(WCharCP, XPoint3dCP lowerLeft, XRotMatrixCP, TextStringPropertiesCR);</div>
<div class="line"><a id="l00044" name="l00044"></a><span class="lineno">   44</span> </div>
<div class="line"><a id="l00053" name="l00053"></a><span class="lineno"><a class="line" href="../../db/d83/struct_text_string.html#ae342455ab5f864ded992857fa978d4b4">   53</a></span>    ATDATACORE_EXPORT XRange2dCR <a class="code hl_function" href="../../db/d83/struct_text_string.html#ae342455ab5f864ded992857fa978d4b4">GetExtents</a>() <span class="keyword">const</span>;</div>
<div class="line"><a id="l00054" name="l00054"></a><span class="lineno">   54</span> </div>
<div class="line"><a id="l00063" name="l00063"></a><span class="lineno"><a class="line" href="../../db/d83/struct_text_string.html#a84c07c73b4c8397863ebfab573dd817f">   63</a></span>    <span class="keywordtype">double</span> <a class="code hl_function" href="../../db/d83/struct_text_string.html#a84c07c73b4c8397863ebfab573dd817f">GetWidth</a>()<span class="keyword"> const </span>{ XRange2dCR extents = <a class="code hl_function" href="../../db/d83/struct_text_string.html#ae342455ab5f864ded992857fa978d4b4">GetExtents</a>(); <span class="keywordflow">return</span> (extents.high.x - extents.low.x); }</div>
<div class="line"><a id="l00064" name="l00064"></a><span class="lineno">   64</span> </div>
<div class="line"><a id="l00073" name="l00073"></a><span class="lineno"><a class="line" href="../../db/d83/struct_text_string.html#a63de8c800b0decec41b108d45b265c36">   73</a></span>    <span class="keywordtype">double</span> <a class="code hl_function" href="../../db/d83/struct_text_string.html#a63de8c800b0decec41b108d45b265c36">GetHeight</a>()<span class="keyword"> const </span>{ XRange2dCR extents = <a class="code hl_function" href="../../db/d83/struct_text_string.html#ae342455ab5f864ded992857fa978d4b4">GetExtents</a>(); <span class="keywordflow">return</span> (extents.high.y - extents.low.y); }</div>
<div class="line"><a id="l00074" name="l00074"></a><span class="lineno">   74</span> </div>
<div class="line"><a id="l00084" name="l00084"></a><span class="lineno"><a class="line" href="../../db/d83/struct_text_string.html#a0289d77075886166007c1daf55e95b62">   84</a></span>    ATDATACORE_EXPORT ATECStatus <a class="code hl_function" href="../../db/d83/struct_text_string.html#a0289d77075886166007c1daf55e95b62">SetOriginFromUserOrigin</a>(XPoint3dCR);</div>
<div class="line"><a id="l00085" name="l00085"></a><span class="lineno">   85</span>};</div>
<div class="line"><a id="l00086" name="l00086"></a><span class="lineno">   86</span> </div>
<div class="line"><a id="l00087" name="l00087"></a><span class="lineno">   87</span>END_ATEC_ATDATACORE_NAMESPACE</div>
<div class="line"><a id="l00088" name="l00088"></a><span class="lineno">   88</span> </div>
<div class="ttc" id="astruct_text_string_html"><div class="ttname"><a href="../../db/d83/struct_text_string.html">TextString</a></div><div class="ttdoc">文本字符串</div><div class="ttdef"><b>Definition:</b> ATTxtStr.h:19</div></div>
<div class="ttc" id="astruct_text_string_html_a0289d77075886166007c1daf55e95b62"><div class="ttname"><a href="../../db/d83/struct_text_string.html#a0289d77075886166007c1daf55e95b62">TextString::SetOriginFromUserOrigin</a></div><div class="ttdeci">ATDATACORE_EXPORT ATECStatus SetOriginFromUserOrigin(XPoint3dCR)</div><div class="ttdoc">设置文本字符串的用户原点</div></div>
<div class="ttc" id="astruct_text_string_html_a63de8c800b0decec41b108d45b265c36"><div class="ttname"><a href="../../db/d83/struct_text_string.html#a63de8c800b0decec41b108d45b265c36">TextString::GetHeight</a></div><div class="ttdeci">double GetHeight() const</div><div class="ttdoc">获取文本字符串范围的高度</div><div class="ttdef"><b>Definition:</b> ATTxtStr.h:73</div></div>
<div class="ttc" id="astruct_text_string_html_a84c07c73b4c8397863ebfab573dd817f"><div class="ttname"><a href="../../db/d83/struct_text_string.html#a84c07c73b4c8397863ebfab573dd817f">TextString::GetWidth</a></div><div class="ttdeci">double GetWidth() const</div><div class="ttdoc">获取文本字符串范围的宽度</div><div class="ttdef"><b>Definition:</b> ATTxtStr.h:63</div></div>
<div class="ttc" id="astruct_text_string_html_aa8a306d94aaf0a6bad1c127c72b0c7c7"><div class="ttname"><a href="../../db/d83/struct_text_string.html#aa8a306d94aaf0a6bad1c127c72b0c7c7">TextString::Create</a></div><div class="ttdeci">static ATDATACORE_EXPORT TextStringPtr Create(WCharCP, XPoint3dCP lowerLeft, XRotMatrixCP, TextStringPropertiesCR)</div><div class="ttdoc">使用以NULL结尾的Unicode字符串和格式化参数创建文本字符串实例</div></div>
<div class="ttc" id="astruct_text_string_html_ae342455ab5f864ded992857fa978d4b4"><div class="ttname"><a href="../../db/d83/struct_text_string.html#ae342455ab5f864ded992857fa978d4b4">TextString::GetExtents</a></div><div class="ttdeci">ATDATACORE_EXPORT XRange2dCR GetExtents() const</div><div class="ttdoc">获取局部坐标系下整个文本字符串的界限（即对齐范围）</div></div>
<div class="ttc" id="astruct_text_string_html_ae4a5e0c57fe765b88fa291a47bdd2b51"><div class="ttname"><a href="../../db/d83/struct_text_string.html#ae4a5e0c57fe765b88fa291a47bdd2b51">TextString::Create</a></div><div class="ttdeci">static ATDATACORE_EXPORT TextStringPtr Create()</div><div class="ttdoc">创建新的空白文本字符串实例，只有当调用了初始化方法后该实例才真正有效</div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="../../doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.3
</small></address>
</body>
</html>
